.class public Lcom/instagram/android/directshare/d/o;
.super Ljava/lang/Object;
.source "InboxRowViewBinder.java"


# direct methods
.method public static a(Landroid/content/Context;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 45
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    sget v1, Lcom/facebook/ax;->row_inbox:I

    const/4 v2, 0x0

    invoke-virtual {v0, v1, p1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v1

    .line 47
    new-instance v2, Lcom/instagram/android/directshare/d/r;

    invoke-direct {v2}, Lcom/instagram/android/directshare/d/r;-><init>()V

    .line 48
    sget v0, Lcom/facebook/aw;->directshare_inbox_row_container:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, v2, Lcom/instagram/android/directshare/d/r;->a:Landroid/view/View;

    .line 49
    sget v0, Lcom/facebook/aw;->row_inbox_thumbnail_container:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout;

    iput-object v0, v2, Lcom/instagram/android/directshare/d/r;->b:Landroid/widget/FrameLayout;

    .line 51
    sget v0, Lcom/facebook/aw;->row_inbox_thumbnail:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/mediacache/IgImageView;

    iput-object v0, v2, Lcom/instagram/android/directshare/d/r;->c:Lcom/instagram/android/mediacache/IgImageView;

    .line 52
    sget v0, Lcom/facebook/aw;->row_inbox_user_profile:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/mediacache/CircularImageView;

    iput-object v0, v2, Lcom/instagram/android/directshare/d/r;->d:Lcom/instagram/android/mediacache/CircularImageView;

    .line 54
    sget v0, Lcom/facebook/aw;->row_inbox_username:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v2, Lcom/instagram/android/directshare/d/r;->e:Landroid/widget/TextView;

    .line 55
    sget v0, Lcom/facebook/aw;->row_inbox_fullname:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v2, Lcom/instagram/android/directshare/d/r;->f:Landroid/widget/TextView;

    .line 56
    sget v0, Lcom/facebook/aw;->row_inbox_time:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v2, Lcom/instagram/android/directshare/d/r;->g:Landroid/widget/TextView;

    .line 57
    sget v0, Lcom/facebook/aw;->row_inbox_status_glyph:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, v2, Lcom/instagram/android/directshare/d/r;->h:Landroid/widget/ImageView;

    .line 58
    sget v0, Lcom/facebook/aw;->row_inbox_video_overlay:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, v2, Lcom/instagram/android/directshare/d/r;->i:Landroid/widget/ImageView;

    .line 59
    sget v0, Lcom/facebook/aw;->row_inbox_tap_to_open:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v2, Lcom/instagram/android/directshare/d/r;->j:Landroid/widget/TextView;

    .line 60
    sget v0, Lcom/facebook/aw;->row_inbox_tap_to_open_chevron:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, v2, Lcom/instagram/android/directshare/d/r;->k:Landroid/widget/ImageView;

    .line 61
    invoke-virtual {v1, v2}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 63
    return-object v1
.end method

.method private static a(Lcom/instagram/android/directshare/d/r;I)V
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 123
    iget-object v0, p0, Lcom/instagram/android/directshare/d/r;->b:Landroid/widget/FrameLayout;

    invoke-virtual {v0, p1}, Landroid/widget/FrameLayout;->setVisibility(I)V

    .line 124
    iget-object v0, p0, Lcom/instagram/android/directshare/d/r;->g:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 125
    return-void
.end method

.method public static a(Lcom/instagram/android/directshare/d/r;Lcom/instagram/j/l;)V
    .locals 6
    .parameter
    .parameter

    .prologue
    const/4 v5, 0x0

    const/16 v4, 0x8

    .line 67
    invoke-static {p1}, Lcom/instagram/android/directshare/j/c;->a(Lcom/instagram/j/l;)Lcom/instagram/android/directshare/j/d;

    move-result-object v0

    .line 69
    invoke-virtual {p1}, Lcom/instagram/j/l;->b()Lcom/instagram/android/model/b/e;

    move-result-object v1

    .line 70
    invoke-virtual {p1}, Lcom/instagram/j/l;->h()Lcom/instagram/model/a/a;

    move-result-object v2

    sget-object v3, Lcom/instagram/model/a/a;->b:Lcom/instagram/model/a/a;

    if-ne v2, v3, :cond_0

    .line 72
    iget-object v2, p0, Lcom/instagram/android/directshare/d/r;->c:Lcom/instagram/android/mediacache/IgImageView;

    new-instance v3, Lcom/instagram/android/directshare/d/p;

    invoke-direct {v3, p0}, Lcom/instagram/android/directshare/d/p;-><init>(Lcom/instagram/android/directshare/d/r;)V

    invoke-virtual {v2, v3}, Lcom/instagram/android/mediacache/IgImageView;->setOnLoadListener(Lcom/instagram/android/mediacache/g;)V

    .line 83
    :goto_0
    iget-object v2, p0, Lcom/instagram/android/directshare/d/r;->c:Lcom/instagram/android/mediacache/IgImageView;

    invoke-virtual {p1}, Lcom/instagram/j/l;->e()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/instagram/android/mediacache/IgImageView;->setUrl(Ljava/lang/String;)V

    .line 84
    iget-object v2, p0, Lcom/instagram/android/directshare/d/r;->d:Lcom/instagram/android/mediacache/CircularImageView;

    invoke-virtual {v1}, Lcom/instagram/android/model/b/e;->j()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/instagram/android/mediacache/CircularImageView;->setUrl(Ljava/lang/String;)V

    .line 85
    iget-object v2, p0, Lcom/instagram/android/directshare/d/r;->e:Landroid/widget/TextView;

    invoke-virtual {v1}, Lcom/instagram/android/model/b/e;->f()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 86
    invoke-virtual {v1}, Lcom/instagram/android/model/b/e;->g()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/facebook/c/i/c;->a(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 87
    iget-object v1, p0, Lcom/instagram/android/directshare/d/r;->f:Landroid/widget/TextView;

    invoke-virtual {v1, v4}, Landroid/widget/TextView;->setVisibility(I)V

    .line 92
    :goto_1
    iget-object v1, p0, Lcom/instagram/android/directshare/d/r;->g:Landroid/widget/TextView;

    invoke-virtual {p1}, Lcom/instagram/j/l;->A()Ljava/lang/CharSequence;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 94
    sget-object v1, Lcom/instagram/android/directshare/d/q;->a:[I

    invoke-virtual {v0}, Lcom/instagram/android/directshare/j/d;->ordinal()I

    move-result v0

    aget v0, v1, v0

    packed-switch v0, :pswitch_data_0

    .line 114
    iget-object v0, p0, Lcom/instagram/android/directshare/d/r;->a:Landroid/view/View;

    sget v1, Lcom/facebook/av;->bg_simple_row:I

    invoke-virtual {v0, v1}, Landroid/view/View;->setBackgroundResource(I)V

    .line 115
    invoke-static {p0, v5}, Lcom/instagram/android/directshare/d/o;->a(Lcom/instagram/android/directshare/d/r;I)V

    .line 116
    iget-object v0, p0, Lcom/instagram/android/directshare/d/r;->h:Landroid/widget/ImageView;

    invoke-virtual {v0, v4}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 117
    iget-object v0, p0, Lcom/instagram/android/directshare/d/r;->j:Landroid/widget/TextView;

    invoke-virtual {v0, v4}, Landroid/widget/TextView;->setVisibility(I)V

    .line 118
    iget-object v0, p0, Lcom/instagram/android/directshare/d/r;->k:Landroid/widget/ImageView;

    invoke-virtual {v0, v4}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 120
    :goto_2
    return-void

    .line 80
    :cond_0
    iget-object v2, p0, Lcom/instagram/android/directshare/d/r;->c:Lcom/instagram/android/mediacache/IgImageView;

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Lcom/instagram/android/mediacache/IgImageView;->setOnLoadListener(Lcom/instagram/android/mediacache/g;)V

    .line 81
    iget-object v2, p0, Lcom/instagram/android/directshare/d/r;->i:Landroid/widget/ImageView;

    invoke-virtual {v2, v4}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_0

    .line 89
    :cond_1
    iget-object v2, p0, Lcom/instagram/android/directshare/d/r;->f:Landroid/widget/TextView;

    invoke-virtual {v1}, Lcom/instagram/android/model/b/e;->g()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 90
    iget-object v1, p0, Lcom/instagram/android/directshare/d/r;->f:Landroid/widget/TextView;

    invoke-virtual {v1, v5}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_1

    .line 96
    :pswitch_0
    iget-object v0, p0, Lcom/instagram/android/directshare/d/r;->a:Landroid/view/View;

    sget v1, Lcom/facebook/av;->bg_row_inbox_unread:I

    invoke-virtual {v0, v1}, Landroid/view/View;->setBackgroundResource(I)V

    .line 97
    invoke-static {p0, v4}, Lcom/instagram/android/directshare/d/o;->a(Lcom/instagram/android/directshare/d/r;I)V

    .line 98
    iget-object v0, p0, Lcom/instagram/android/directshare/d/r;->h:Landroid/widget/ImageView;

    invoke-virtual {v0, v4}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 99
    iget-object v0, p0, Lcom/instagram/android/directshare/d/r;->k:Landroid/widget/ImageView;

    invoke-virtual {v0, v5}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 100
    iget-object v0, p0, Lcom/instagram/android/directshare/d/r;->j:Landroid/widget/TextView;

    invoke-virtual {v0, v5}, Landroid/widget/TextView;->setVisibility(I)V

    .line 101
    iget-object v1, p0, Lcom/instagram/android/directshare/d/r;->j:Landroid/widget/TextView;

    invoke-virtual {p1}, Lcom/instagram/j/l;->h()Lcom/instagram/model/a/a;

    move-result-object v0

    sget-object v2, Lcom/instagram/model/a/a;->b:Lcom/instagram/model/a/a;

    if-ne v0, v2, :cond_2

    sget v0, Lcom/facebook/ba;->video:I

    :goto_3
    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(I)V

    goto :goto_2

    :cond_2
    sget v0, Lcom/facebook/ba;->photo:I

    goto :goto_3

    .line 106
    :pswitch_1
    iget-object v0, p0, Lcom/instagram/android/directshare/d/r;->a:Landroid/view/View;

    sget v1, Lcom/facebook/av;->bg_simple_row:I

    invoke-virtual {v0, v1}, Landroid/view/View;->setBackgroundResource(I)V

    .line 107
    invoke-static {p0, v5}, Lcom/instagram/android/directshare/d/o;->a(Lcom/instagram/android/directshare/d/r;I)V

    .line 108
    iget-object v0, p0, Lcom/instagram/android/directshare/d/r;->h:Landroid/widget/ImageView;

    invoke-virtual {v0, v5}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 109
    iget-object v0, p0, Lcom/instagram/android/directshare/d/r;->j:Landroid/widget/TextView;

    invoke-virtual {v0, v4}, Landroid/widget/TextView;->setVisibility(I)V

    .line 110
    iget-object v0, p0, Lcom/instagram/android/directshare/d/r;->k:Landroid/widget/ImageView;

    invoke-virtual {v0, v4}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_2

    .line 94
    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method
